﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WowParserLib.Events.SuffixArgs;
using WowParserLib.Events;

namespace WowParserLib.EventParsers
{
    public class EnergizedArgsParser: EventArgsParser
    {

        public EnergizedArgsParser(int startIndex)
            : base(startIndex)
        {
        }

        #region IArgsParser Members

        public override WowParserLib.Events.EventArguments Parse(string[] args)
        {
            int amount = int.Parse(args[StartIndex]);
            PowerType pt = (PowerType)int.Parse(args[StartIndex + 1]);
            return new EnergizeArgs(amount, pt);
        }

        #endregion
    }
}
